package com.sunshine.domain;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayAndRepertory {

    private Integer id;

    private Integer userId;

    private BigDecimal amount;

    private Date createdAt;

    private Date updatedAt;

    //订单
    private Integer id2;

    private Double price;

    private Integer quantity;

    //库存
    private Integer id3;

    private Integer commodityId;
    @NotNull
    private Integer number;

    private Date lastUpdate;

}
